package com.zh.junit.func;

/**
 *
 * @author ZH
 * @date 17:57 2023/4/4
 */
public class DemoCase {
    public static final String REGEX_NUMBER = "^\\d+(|.\\d{1,9})(?!.)$";

    public boolean isNumber(String str){
        System.out.println("str = "+str);
        return str.matches(REGEX_NUMBER);
    }

    public boolean isRight(int a, int b, int c) {
        boolean result = false;
        if (a == 1 && b == 2 || c == 3) {
            result = true;
        }
        return result;
    }

    public boolean coverageCase(int a, int b, int c) {
        boolean result = false;
        if (a == 1 && b == 2 || c == 3) {
            result = true;
        }
        return result;
    }
}
